﻿/*
 * Copyright (c) Jason Paul Morley, 2010
 * Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Core
{
    public class BEvent : IEvent
    {
        /// <summary>
        /// Creates the event with the passed name
        /// </summary>
        /// <param name="name"></param>
        protected BEvent(string name)
        {
            _pv_strName = name;
            _pv_nHash = _pv_strName.GetHashCode();
        }

        public string Name()
        {
            return _pv_strName;
        }

        public int Hash()
        {
            return _pv_nHash;
        }

        private string _pv_strName;
        private int _pv_nHash;
    }
}
